import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Lolzturtle here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Lolzturtle  extends Actor
{
    private GreenfootImage[] pic;
    private int counter;
    
    public Lolzturtle()
    {
        pic = new GreenfootImage[4];
        counter = 0;
        
        for (int i = 0; i < 4; i++)
            pic[i] = new GreenfootImage("turtle" + (i + 1) + ".png");
    }
    
    /**
     * Act - do whatever the Lolzturtle wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        // Add your action code here.
        setImage(pic[counter%4]);
        counter++;
        Greenfoot.delay(3000);
    }    
}
